import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'
import 'highlight.js/styles/default.css' // 代码高亮的样式
import directiveObj from './utils/directive'
import './VueComponent'
// import axios from 'axios'
if (process.env.NODE_ENV !== 'development') { // process是Node环境全部变量, 运行时根据敲击的命令不同, 脚手架会取环境变量给env添加属性和值
  console.log = function () {}
  console.error = function () {}
  console.dir = function () {}
}

Vue.config.productionTip = false

/* axios({
  url: '/api/nc/article/headline/T1348647853363/0-40.html'
}).then(res => {
  console.log(res)
}) */
// 封装中间件函数插件
Vue.use(directiveObj)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
